package com.zjr.service.impl;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.zjr.dao.DepartmentDao;
import com.zjr.domain.Department;
import com.zjr.service.DepartmentService;
/**
 * 部门业务层实现类
 * */
@Transactional
public class DepartmentServiceImpl implements DepartmentService {
	private DepartmentDao departmentDao;
	public void setDepartmentDao(DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}
	
	@Override
	public List<Department> findAll() {
		return departmentDao.findAll();
	}

	@Override
	public void save(Department department) {
		departmentDao.save(department);
	}
}
